<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <canvas id="myCanvas" width="2000" height="2000">

    </canvas>
    <script>
        const myCanvas = document.getElementById('myCanvas');
        const content = myCanvas.getContext('2d');


        content.fillStyle = 'red';
        content.fillRect(50,50,200,100)
        content.fillStyle = 'blue';
        content.fillRect(350,50,200,100)
        
    </script>
</body>
</html>